package com.Ajava1704.for设计模式.for观察者模式;

/**
 * 作者: LCG
 * 日期: 2020/2/14 15:42
 * 描述:
 */
public class Test010 {
    public static void main(String[] args) {

        BeiGuanChaZhe beiGuanChaZhe=new BeiGuanChaZhe();
        //注册观察者
        beiGuanChaZhe.register(new GuanChaZhe());
        beiGuanChaZhe.register(new GuanChaZhe2());

        beiGuanChaZhe.test();

    }
}
